package com.pkx.cloud.fse7.dms.organization.feign;

import com.pkx.cloud.fse7.dms.organization.entity.Organization;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "Organization", url = "${pkx.base-url}/api/Organization")
public interface OrganizationFeign {
    @PostMapping("/Add")
    String add(@RequestBody Organization organization);

    @PutMapping("/Modify")
    String modify(@RequestBody Organization organization);

    @PostMapping(value = "/DeleteFunc", consumes = {MediaType.APPLICATION_JSON_VALUE})
    String deleteFunc(@RequestBody String str);
}
